#ifndef CCUISINE_H
#define CCUISINE_H

#include <QObject>
#include <QList>
#include <QString>
#include <QDeclarativeListProperty>
#include "crecipe.h"
#include "cobject.h"
namespace cooking {

class CCuisine : public CObject
{
    Q_OBJECT
    Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged)
    Q_PROPERTY(int parentId READ parentId WRITE setParentId NOTIFY parentIdChanged)
    Q_PROPERTY(QString description READ description WRITE setDescription NOTIFY descriptionChanged)
    Q_PROPERTY(int regionId READ regionId WRITE setRegionId NOTIFY regionIdChanged)
    Q_PROPERTY(QString picture READ picture WRITE setPicture NOTIFY pictureChanged)

public:
    explicit CCuisine(QObject *parent = 0);

    QString name();
    void setName(QString name);

    int parentId();
    void setParentId(int parentId);

    QString description();
    void setDescription(QString desc);

    int regionId();
    void setRegionId(int regionId);

    QString picture();
    void setPicture(QString picture);
signals:
    void idChanged();
    void parentIdChanged();
    void nameChanged();
    void flavourChanged();
    void descriptionChanged();
    void regionIdChanged();
    void pictureChanged();

public slots:

private:
    QString m_name;
    int m_parent_id;
    QString m_description;
    int m_region_id;
    QString m_picture;
};
} // namespace cooking
#endif // CCUISINE_H
